package cn.xopencode.userservice.convert;

import cn.xopencode.userservice.dal.mysql.dataobject.MatterDO;
import cn.xopencode.userservice.rpc.matter.dto.CreateMatterDTO;
import cn.xopencode.userservice.rpc.matter.dto.MatterDTO;
import cn.xopencode.userservice.rpc.matter.dto.UpdateMatterDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author xiaodawei
 * @since 2021/9/22
 */

@Mapper
public interface MatterConver {

    MatterConver INSTANCE = Mappers.getMapper(MatterConver.class);

    MatterDTO convert(MatterDO matterDO);

    MatterDO convert(CreateMatterDTO createDeptDTO);

    MatterDO convert(UpdateMatterDTO updateMatterDTO);
}
